import axios from 'axios';
import {API_NEW_VERSION} from '../api';

export const getAllStandardPrices = params => {
  return axios.get(API_NEW_VERSION + 'standard-prices', {params: params});
};

export const createStandardPrice = params => {
  return axios.post(API_NEW_VERSION + 'standard-prices', params);
};

export const updateStandardPrice = params => {
  return axios.put(API_NEW_VERSION + 'standard-prices', params);
};

export const getStandardPrice = id => {
  return axios.get(API_NEW_VERSION + 'standard-prices/' + id);
};

export const deleteStandardPrice = id => {
  return axios.delete(API_NEW_VERSION + 'standard-prices/' + id);
};
